/**
 * Created by xxcao on 2017/7/4.
 */

module.exports = Object.freeze({
    OPERATE_SUCCESS:200,  //操作成功
    DATABASE_CONNECTION_ERROR: 1001, //数据库连接出错
    DATABASE_SQL_EXCUTE_ERROR: 1002, //SQL执行出错
    EXISTED: 1003, //已存在
    NOT_EXISTED: 1004, //不存在
    SESSION_VALID: 1005, //session失效
    PARAMETER_ERROR: 1006, //参数错误
    PARAMETER_IS_NULL: 1007, //参数为空
    IS_TO_BE: 1008, //已经是
    IS_NOT_TO_BE: 1009, //不是
    CREATE_FAILURE: 1010, //创建失败
    UPDATE_FAILURE: 1011, //修改失败
    DELETE_FAILURE: 1012, //删除失败
    IS_DELETED:1013, //已经删除
    IS_CAN: 1014, //能够
    IS_NOT_CAN: 1015, //不能够

    //for cattle
    NTypeTransferRest: 1,         //调休
    NTypeLeaveAbsence: 2,         //事假
    NTypeLeaveYear: 3,            //年假
    NTypeLeaveSick: 4,             //病假
    NTypeOnTravelling: 5,          //旅途
    NTypeOther: 6,                 //其它免考
    NTypeOverTime: 7,             //节假日加班
    NTypeSupplySign: 8,            //补录
    NTypeTravellingWeek: 9,       //周末差旅
    NTypeAssignWBS: 10,            //分配WBS
});